package com.lyz.dataStructure.algorithm.huawei2020;/**
 * @Author:759057893@qq.com Lyz
 * @Date: ${Date} 20:12
 * @Description:
 **/

import java.lang.reflect.Array;
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

/**
 *@Author:759057893@qq.com Lyz
 *@Date: 2019/8/14 20:12
 *@Description:
 **/
public class Main2 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String s = sc.nextLine();
        String[] st = s.split(",");

        for(String s2:st){
            System.out.println(solve(s2));
        }
    }
    public static String solve(String s) {
        if(s==""){
            return "--";
        }
        for(int i=0;i<s.length()-1;i++){
            if(s.charAt(i)>'0'||s.charAt(i)<'9'){
                return s;
            }
        }
        if(s.contains(",")&&s.contains("\"")){
          return  "\""+s+"\"";
        }
        return  s;
    }
}
